package com.lam.dormitory.service;

import com.lam.dormitory.entity.Repair;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lam.dormitory.util.ResponseTemplate;
import com.lam.dormitory.vo.RepairVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lam
 * @since 2019-12-26
 */
public interface IRepairService extends IService<Repair> {
    /**
     * 根据DorId查找RepairVo
     * @param dorId
     * @return
     */
    List<RepairVo> selectRepairVoByDorId(Long dorId);

    /**
     * 根据查找RepairVo
     * @return
     */
    List<RepairVo> selectRepairVo(Repair repair);

    ResponseTemplate saveBatch(List<RepairVo> list);

}
